<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">



<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</h:head>


<h:body>
	<ui:composition template="/XHTML/CommonColumnsContent.xhtml">
		<ui:define name="header">
			<ui:include src="/WEB-INF/facelets/header.jspx" />
		</ui:define>
		<br />
		<br />

		<ui:define name="body">
			<f:view>
				<p:ajaxStatus onstart="statusDialog.show();"
					onsuccess="statusDialog.hide();" />
				<p:dialog modal="true" widgetVar="statusDialog" header="Loading"
					draggable="false" closable="false">
					<p:graphicImage
						value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/images/ajaxloadingbar.gif" />
				</p:dialog>

				<h:form>
					<br />
					<br />
					<br />
					<br />
					<br />
					<br />
					<br />
					<br />
					<div align="center">
						<h:link id="cmdBack" outcome="goVolver" value="volver"
							style="color:blue;" />
					</div>
					<p:panel id="msgProjectEventoTitle" header="Registro de Eventos">
						<p:messages id="msg" showDetail="true" />
						<p:growl id="men" />
						<h:panelGrid columns="2" id="panel">

							<h:outputText value="Nombre" />
							<p:inputText binding="#{eventoView.txtNombre}">
								<p:ajax listener="#{eventoView.listenerNombre}"
									update="btnSave,btnModify,tEvento,Finicio,Ffin" />
							</p:inputText>

							<h:outputText value="TipoEvento" />
							<p:selectOneMenu id="tEvento"
								binding="#{eventoView.somTiposEventos}" disabled="true">
								<f:selectItems value="#{eventoView.losTiposEventos}" />
							</p:selectOneMenu>


							<h:outputText value=" FechaInicio" />
							<p:calendar id="Finicio" showOn="button" navigator="true"
								locale="es" binding="#{eventoView.txtFechaInicio}"
								pattern="dd/MM/yyyy HH:mm" disabled="true">
								<p:ajax event="dateSelect"
									listener="#{eventoView.listener_txtFechaInicio}" update="men" />
							</p:calendar>

							<h:outputText value=" FechaFini" />
							<p:calendar id="Ffin" showOn="button" navigator="true"
								locale="tr" binding="#{eventoView.txtFechaFini}"
								pattern="dd/MM/yyyy HH:mm" disabled="true">
								<p:ajax event="dateSelect"
									listener="#{eventoView.listener_txtFechaFini}" update="men" />
							</p:calendar>



						</h:panelGrid>

						<h:panelGrid id="panelBotones" columns="5">

							<p:commandButton id="btnSave" disabled="true" value="Guardar"
								action="#{eventoView.action_save}"
								update="msg,panel,panelBotones" binding="#{eventoView.btnSave}" />
							<p:commandButton id="btnModify" disabled="true" value="Modificar"
								action="#{eventoView.action_modify}"
								update="msg,panel,panelBotones"
								binding="#{eventoView.btnModify}" />
							<p:commandButton id="btnClear" disabled="false" value="Limpiar"
								action="#{eventoView.action_clear}"
								update="msg,panel,panelBotones" binding="#{eventoView.btnClear}" />
							<h:commandButton image="/images/documentos.png"
								style="width:30;height:30" action="alleventos" />

						</h:panelGrid>


					</p:panel>

				</h:form>
			</f:view>
		</ui:define>

		<ui:define name="footer">
			<ui:include src="/WEB-INF/facelets/footer.jspx" />
		</ui:define>
	</ui:composition>
</h:body>

</html>
